﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="login.ascx.cs" Inherits="usercontrols_login" %>
<%if (OUser == null)
  { %>
<div style="color: white" id="div_login">
    username:
    <asp:TextBox ID="TB_Username" runat="server" MaxLength="30" CssClass="inputLogin"></asp:TextBox>
    password:
    <asp:TextBox ID="TB_Password" runat="server" MaxLength="30" TextMode="Password" CssClass="inputLogin"></asp:TextBox>
    <%--<asp:Button ID="BT_Login" runat="server" OnClick="BT_Login_Click" Text="đăng nhập" />--%>
    <asp:LinkButton ID="link_login" runat="server" onclick="link_login_Click" 
        ForeColor="White">Đăng nhập</asp:LinkButton> |
    <a href="/DangKy.aspx" style="color: white">Đăng ký</a>
</div>
<% }
  else
  { %>
<div style="color: white">Chào mừng <a href="SuaThongTinND.aspx" style="color: white"><%=OUser.fullname %></a> | <a href="/ScratchCard.aspx" style="color: white">Tài khoản: <%=string.Format("{0:N0}",OUser.VND) %> VNĐ</a> | 
    <a href="/logout.aspx" style="color: white">Thoát</a></div>
<% } %>